home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 March / maximum-cd-2000-03.iso / Quake3 Game Source / Q3AGameSource.exe / Main / botai.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-18  |  2.2 KB  |  79 lines

  1.  
  2. /*****************************************************************************
  3.  * name:        botai.h
  4.  *
  5.  * desc:        bot AI
  6.  *
  7.  * $Archive: /source/code/game/botai.h $
  8.  * $Author: Mrelusive $ 
  9.  * $Revision: 2 $
  10.  * $Modtime: 03/01/00 3:32p $
  11.  * $Date: 03/01/00 3:42p $
  12.  *
  13.  *****************************************************************************/
  14.  
  15. //some maxs
  16. #define MAX_NETNAME                36
  17. #define MAX_FILEPATH            144
  18.  
  19. //bot settings
  20. typedef struct bot_settings_s
  21. {
  22.     char characterfile[MAX_FILEPATH];
  23.     int skill;
  24.     char team[MAX_FILEPATH];
  25. } bot_settings_t;
  26.  
  27. #ifndef BSPTRACE
  28.  
  29. #define BSPTRACE
  30.  
  31. //bsp_trace_t hit surface
  32. typedef struct bsp_surface_s
  33. {
  34.     char name[16];
  35.     int flags;
  36.     int value;
  37. } bsp_surface_t;
  38.  
  39. //remove the bsp_trace_s structure definition l8r on
  40. //a trace is returned when a box is swept through the world
  41. typedef struct bsp_trace_s
  42. {
  43.     qboolean        allsolid;    // if true, plane is not valid
  44.     qboolean        startsolid;    // if true, the initial point was in a solid area
  45.     float            fraction;    // time completed, 1.0 = didn't hit anything
  46.     vec3_t            endpos;        // final position
  47.     cplane_t        plane;        // surface normal at impact
  48.     float            exp_dist;    // expanded plane distance
  49.     int                sidenum;    // number of the brush side hit
  50.     bsp_surface_t    surface;    // the hit point surface
  51.     int                contents;    // contents on other side of surface hit
  52.     int                ent;        // number of entity hit
  53. } bsp_trace_t;
  54.  
  55. #endif    // BSPTRACE
  56.  
  57. // ai_main.c
  58. int        BotAISetupClient( int client, bot_settings_t *settings );
  59.  
  60. //
  61. // imported functions used for the BotAI
  62. //
  63.  
  64.  
  65. // from the server
  66. /*
  67. void    trap_Cvar_Register( vmCvar_t *cvar, const char *var_name, const char *value, int flags );
  68. void    trap_Cvar_Update( vmCvar_t *cvar );
  69. void    trap_Cvar_Set( const char *var_name, const char *value );
  70. int        trap_Cvar_VariableIntegerValue( const char *var_name );
  71. void    trap_Cvar_VariableStringBuffer( const char *var_name, char *buffer, int bufsize );
  72. void    trap_GetConfigstring( int num, char *buffer, int bufferSize );
  73. void    trap_GetServerinfo( char *buffer, int bufferSize );
  74. int        trap_PointContents( const vec3_t point, int passEntityNum );
  75. qboolean trap_InPVS( const vec3_t p1, const vec3_t p2 );
  76. int        trap_BotAllocateClient( void );
  77. void    trap_BotFreeClient( int clientNum );
  78. */
  79.